package com.zdp.filesync.notify.controller;

import com.zdp.filesync.config.client.FileSyncClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 用于通知 对应的客户端进行文件同步
 */
@RestController
@RequestMapping("/notify")
public class NotifySyncController {

    @Autowired
    private FileSyncClient fileSyncClient;

    @GetMapping("/test")
    FileSyncClient test(){
        return fileSyncClient;
    }


    @GetMapping("/client")
    Map<String,Object> notifyClient(){

        return null;
    }

}
